f604fa3fa92d2c1c18068ff1a4536e1661ef9c15,server/src/test/java/keywhiz/service/daos/AclDAOTest.java,AclDAOTest,getSanitizedSecretsForClient,#,206
Before Change
for (SanitizedSecret secret : secrets) {
if (secret.name().equals(secret1.getName())) {
assertThat(secret).isEqualToIgnoringGivenFields(
SanitizedSecret.fromSecretWithGroups(SanitizedSecret.fromSecret(secret1),
Collections.singletonList("group2")), "id");
} else {
assertThat(secret).isEqualToIgnoringGivenFields(
SanitizedSecret.fromSecretWithGroups(SanitizedSecret.fromSecret(secret2),
Collections.singletonList("group2")), "id");
}
}
After Change
if (secret.name().equals(secret1.getName())) {
assertThat(secret).isEqualToIgnoringGivenFields(SanitizedSecret.fromSecret(secret1), "id");
} else {
assertThat(secret).isEqualToIgnoringGivenFields(SanitizedSecret.fromSecret(secret2), "id");
}
}